import request from "@/utils/request";

export function fetchList(query) {
  return request({
    url: "/full_reduce_activity/itemList",
    method: "get",
    params: query,
  });
}

export function createPicture(data) {
  return request({
    url: "/full_reduce_activity/create",
    method: "post",
    data,
  });
}
export function editPicture(data) {
  return request({
    url: "/full_reduce_activity/update",
    method: "post",
    data,
  });
}
export function deletePicture(id) {
  return request({
    url: "/full_reduce_activity/delete?id=" + id,
    method: "get",
  });
}

export function getGood() {
  return request({
    url: "/product/index",
    method: "get",
  });
}

//上传图片
export function uploadImg(data) {
  return request({
    url: "/upload/image",
    method: "post",
    data,
  });
}
